package com.example.myapplication.presenter;

import androidx.viewpager.widget.ViewPager;

import com.example.myapplication.model.DetailModel;
import com.example.myapplication.view.DetailView;

import java.util.List;

public class DetailPresenter implements DetailModel.DetailCallBack, DetailPresent {
    private DetailView dv;
    private DetailModel dm;

    public DetailPresenter(DetailView view) {
        dv = view;
        dm=new DetailModel();
    }

    @Override
    public void initViewPagerAdapter(ViewPager vp) {
        dm.initViewPagerAdapter(vp, this);
    }

    @Override
    public void receiverViewPagerAdapter(ViewPager vp, List<Integer> list) {
        dv.initViewPagerAdapter(vp, list);
    }

    @Override
    public void loseViewPagerAdapter(String err) {

    }
}
